package chapter_8.map;

import java.util.HashMap;
import java.util.Map;

public class Test1 {
    public static void main(String[] args) {
        HashMap<String , String> map = new HashMap<>();
        map.put("aa","bb");
        map.put("aa1","bb1");
        for (String key : map.keySet()) {
            System.out.println("key="+key+",value="+map.get(key));
        }
        for (Map.Entry<String, String> entry : map.entrySet()) {
            System.out.println("key="+entry.getKey()+",value="+entry.getValue());
        }
    }
}
